package com.lws.basic.persenter;



import com.lws.basic.utils.common.MyLogger;
import com.lws.basic.utils.common.MyToast;

import io.reactivex.Observer;
import io.reactivex.disposables.Disposable;

/**
 * ui层用来访问网络结果的观察者，不带数据
 */

public abstract class ObserverOnComplete implements Observer {
    @Override
    public void onSubscribe(Disposable d) {

    }

    @Override
    public void onNext(Object o) {

    }

    @Override
    public void onError(Throwable e) {
        MyToast.show("网络错误");
        MyLogger.e(e.getMessage());
    }

}
